/*
 * SPI3_UNIT.h
 *
 *  Created on: Nov 5, 2021
 *      Author: ITry
 */

#ifndef INC_SPI3_UNIT_H_
#define INC_SPI3_UNIT_H_

#include "stm32f1xx_hal.h"

int spi3_read_byte (void* bus_param, uint8_t dev_addr, uint8_t reg_addr, uint8_t *data);
int spi3_read_bytes (void* bus_param, uint8_t dev_addr, uint8_t reg_addr, uint8_t len, uint8_t *data);
int spi3_write_byte (void* bus_param, uint8_t dev_addr, uint8_t reg_addr, uint8_t data);

#endif /* INC_SPI3_UNIT_H_ */
